import requests
from requests.exceptions import Timeout

try:
    response  = requests.get("http://www.baidu.com",timeout=0.01)
    print("normal")
except Timeout as e:
    print(e)